package com.wlt;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;

@Slf4j
@RefreshScope                // 配置动态刷新
@EnableDiscoveryClient        // 向中心注册服务
// 不需要数据源配置，但mybatisPlus需要数据源配置，因此要exclude
@SpringBootApplication (exclude = {DataSourceAutoConfiguration.class})
public class ShoppingManagerApiApplication
{
	
	public static void main (String[] args)
	{
		SpringApplication.run(ShoppingManagerApiApplication.class, args);
		
		log.info("--------------- ShoppingManagerApiApplication Success ---------------");
	}
	
}
